
<div ng-controller="ComboCtrl">
	
	<div class="page-heading">
		<ul class="breadcrumb" >
			<li><a href="javascript:;">报表管理</a></li>
			<li>维修报表</li>
			<li class="active">维修组合查询</li>
			<span style="margin-right:10px;"  class="btn btn-danger btn-xs pull-right btn-flag " ng-show="flag" ng-click="delFlag('/repair/combo/')"><i class="fa fa-times"></i> 删除 </span>
			<span style="margin-right:10px;"  class="btn btn-info btn-xs pull-right btn-flag " ng-click="addFlag('#/repair/combo/')"><i class="fa fa-star"></i> 收藏 </span>	
		</ul>
		
	</div>
	<!-- 页面头部  end-->

	<!--页面内容显示区域-->
	<div class="wrapper">


		<div class="row">
			<div class="col-sm-12">
				<!--表格显示区域-->
				<section class="panel">
					<!--区块头 显示表格名称和功能按钮-->
					<header class="panel-heading">
						查询条件
						<!--控制按钮-->
						<span class="tools pull-right"> <!--收起-->
							<button type="button" class="btn btn-success pull-left" ng-click="SearchData()"
								style="margin-left: 5px;">
								<i class="fa fa-search" ></i> 查询
							</button>
							<button type="button" class="btn btn-info  pull-left" ng-click="ExportData()"
								style="margin-left: 5px;">
								<i class="fa fa-table"></i> 导出EXCEL
							</button> <a href="javascript:;" class="fa fa-chevron-up form_display"></a>

						</span>
					</header>
					<!--区块body 显示表格内容-->
					<div class="panel-body form-horizontal form_hide">
						<div class="row">
							<div class="col-md-3 ">
								<div class="form-group">
									<label class="col-lg-4 col-sm-5 control-label"
										for="inputEmail1">事业部</label>
										<div class="col-lg-8 col-sm-7">
										<input type="text" id="entity_group_name"  ng-keyup="clearGroup()"  name="entity_group_name"   class="form-control select_edit form_params" />
                                            <ul class="select_list">
                                                  <li ng-repeat="e in groups" ng-click='LoadBrands(e.group_name)' val_code="{{e.group_name}}" val_name="{{e.group_name}}">{{e.group_name}}</li>
                                            </ul>  
                                            </div>
								</div>
							</div>
							
							<div class="col-md-3 ">
								<div class="form-group">
									<label class="col-lg-4 col-sm-5 control-label"
										for="inputEmail1">店面品牌</label>
									<div class="col-lg-8 col-sm-7">
										<input type="text" id="entity_brand_name" ng-keyup="clearGroupBrand()" name="entity_brand_name" class="form-control select_edit form_params" value=""/>
                                            <ul class="select_list">
                                                  <li ng-repeat="e in gBrands" ng-click='LoadEntitys(e)' val_code="{{e.brand_code}}" val_name="{{e.brand_name}}">{{e.brand_name}}</li>
                                            </ul> 
									</div>
								</div>
							</div>
							<div class="col-md-3 ">
								<div class="form-group">
									<label class="col-lg-4 col-sm-5 control-label"
										for="inputEmail1">店面信息</label>
										<div class="col-lg-8 col-sm-7">
										<input type="text" id="entity_name" name="entity_name" class="form-control select_edit form_params" value=""/>
										<input type="hidden" id="entity_code" name="entity_code"  class="form-control select_value form_params" value=""/>
                                            <ul class="select_list">
                                                  <li ng-repeat="e in entitys" ng-click='LoadEmps(e)' val_code="{{e.entity_code}}" val_name="{{e.entity_name}}">{{e.entity_name}}({{e.entity_code}})</li>
                                            </ul>   
                                      </div>
								</div>
							</div>
							
							
							<div class="col-md-3">
								<div class="form-group">
									<label class="col-lg-4 col-sm-5 control-label"
										for="inputEmail1">结清日期</label>
									<div class="col-lg-8 col-sm-7">
										<div data-date-format="yyyy-mm-dd" data-date="2016-5-15" class="input-large custom-date-range ">
											<input type="text" name="dateStart" class="form-control form_params" id="dateStart" onFocus="WdatePicker({maxDate:'#F{$dp.$D(\'dateEnd\')||\'2020-10-01\'}'})">
										</div>
									</div>
								</div>
							</div>
                            
                            <div class="col-md-3">
								<div class="form-group">
									<label class="col-lg-4 col-sm-5 control-label text-center" for="inputEmail1">至</label>
									<div class="col-lg-8 col-sm-7">
										<div data-date-format="yyyy-mm-dd" data-date="2016-5-15" class="input-large custom-date-range">
											 <input type="text" name="dateEnd" class="form-control form_params" id="dateEnd" onFocus="WdatePicker({minDate:'#F{$dp.$D(\'dateStart\')}',maxDate:'2020-10-01'})">
										</div>
									</div>
								</div>
							</div>
							
							<div class="col-md-3">
								<div class="form-group">
									<label class="col-lg-4 col-sm-5 control-label"
										for="inputEmail1">工单号</label>
									<div class="col-lg-8 col-sm-7">
										<input name="ro_no" type="text"  class="form-control form_params">
									</div>
								</div>
							</div>
							
							
							<div class="col-md-3">
								<div class="form-group">
									<label class="col-lg-4 col-sm-5 control-label"
										for="inputEmail1">维修类型</label>
									<div class="col-lg-8 col-sm-7">
									        <select name="repair_type_code"  class="form-control form_params">
												<option></option>
												<option ng-repeat="b in repairType" value="{{b.repair_type_code}}">{{b.repair_type_name}}</option>
											</select>
											
									</div>
								</div>
							</div>
							
							<div class="col-md-3">
								<div class="form-group">
									<label class="col-lg-4 col-sm-5 control-label"
										for="inputEmail1">是否完整</label>
									<div class="col-lg-8 col-sm-7">
									        <select name="isComplete"  class="form-control form_params">
									            <option value=""></option>
												<option value="10">是</option>
												<option value="20">否</option>
											</select>
											
									</div>
								</div>
							</div>
						</div>
					</div>
				</section>

				<section class="panel">
					<!--区块头 显示表格名称和功能按钮-->
					<header class="panel-heading">
						维修组合查询

						<!--控制按钮-->
						<span class="tools pull-right"> <!--收起--> <a
							href="javascript:;" class="fa fa-chevron-down"></a>
						</span>
						
					</header>
					<!--区块body 显示表格内容-->
					<div class="panel-body form-horizontal ">

						<div class="adv-table" style="overflow-x: scroll">
							<table id="WorkTypeTable"
								class="table table-striped  nowrap  dataTable no-footer table_store table-hover float_head"
								cellspacing="0" width="100%">
								<thead>
									
									<tr>
										<th ng-show="!cols.contains('index')" >序号</th>
										<th ng-show="!cols.contains('entity_code')" column="entity_code">店面编号</th>
										<th ng-show="!cols.contains('entity_name')" column="entity_name">店面名称</th>
										<th ng-show="!cols.contains('entity_brand_name')" column="entity_brand_name">店面品牌</th>
										<th ng-show="!cols.contains('entity_group_name')" column="entity_group_name">事业部</th>
										<th ng-show="!cols.contains('ro_no')" column="ro_no">工单号</th>
										<th ng-show="!cols.contains('ro_create_date')" column="ro_create_date">开单日期</th>
										<th ng-show="!cols.contains('square_date')" column="square_date">结清日期</th>
										<th ng-show="!cols.contains('repair_type_name')" column="repair_type_name">维修类型</th>
										<th ng-show="!cols.contains('owner_name')" column="owner_name">客户名称</th>
										<th ng-show="!cols.contains('mobile')" column="mobile">手机号</th>
										<th ng-show="!cols.contains('license')" column="license">车牌号</th>
										<th ng-show="!cols.contains('vin')" column="vin">VIN</th>
										<th ng-show="!cols.contains('brand_name')" column="brand_name">品牌</th>
										<th ng-show="!cols.contains('series_name')" column="series_name">车系</th>
										<th ng-show="!cols.contains('openCount')" column="openCount">开口组合数</th>
										<th ng-show="!cols.contains('openCode')" column="openCode">开口组合代码</th>
										<th ng-show="!cols.contains('openName')" column="openName">开口组合名称</th>
										<th ng-show="!cols.contains('actualCount')" column="actualCount">实际组合数</th>
										<th ng-show="!cols.contains('actualCode')" column="actualCode">实际组合代码</th>
										<th ng-show="!cols.contains('actualName')" column="actualName">实际组合名称</th>
										<th ng-show="!cols.contains('isComplete')" column="isComplete">是否完整</th>
										<th ng-show="!cols.contains('receivable_amount')" column="receivable_amount">应收金额</th>
										<th ng-show="!cols.contains('received_amount')" column="received_amount">已收金额</th>
										<th ng-show="!cols.contains('part_cost')" column="part_cost">成本</th>
										<th ng-show="!cols.contains('gross_margin')" column="gross_margin">毛利</th>
										<th ng-show="!cols.contains('gross_profit_rate')" column="gross_profit_rate">毛利率</th>
									</tr>
								</thead>
								<tbody>
									<tr ng-repeat="c in datas" >
										<td ng-show="!cols.contains('index')" >{{$index+1}}</td>
										<td ng-show="!cols.contains('entity_code')" column="entity_code">{{c.entity_code}}</td>
										<td ng-show="!cols.contains('entity_name')" column="entity_name">{{c.entity_name}}</td>
										<td ng-show="!cols.contains('entity_brand_name')" column="entity_brand_name">{{c.entity_brand_name}}</td>
										<td ng-show="!cols.contains('entity_group_name')" column="entity_group_name">{{c.entity_group_name}}</td>
										<td ng-show="!cols.contains('ro_no')" column="ro_no">{{c.ro_no}}</td>
										<td ng-show="!cols.contains('ro_create_date')" column="ro_create_date">{{c.ro_create_date}}</td>
										<td ng-show="!cols.contains('square_date')" column="square_date">{{c.square_date}}</td>
										<td ng-show="!cols.contains('repair_type_name')" column="repair_type_name">{{c.repair_type_name}}</td>
										<td ng-show="!cols.contains('owner_name')" column="owner_name">{{c.owner_name}}</td>
										<td ng-show="!cols.contains('mobile')" column="mobile">{{c.mobile|mobile}}</td>
										<td ng-show="!cols.contains('license')" column="license">{{c.license}}</td>
										<td ng-show="!cols.contains('vin')" column="vin">{{c.vin}}</td>
										<td ng-show="!cols.contains('brand_name')" column="brand_name">{{c.brand_name}}</td>
										<td ng-show="!cols.contains('series_name')" column="series_name">{{c.series_name}}</td>
										<td ng-show="!cols.contains('openCount')" column="openCount">{{c.openCount}}</td>
										<td ng-show="!cols.contains('openCode')" column="openCode">{{c.openCode}}</td>
										<td ng-show="!cols.contains('openName')" column="openName">{{c.openName}}</td>
										<td ng-show="!cols.contains('actualCount')" column="actualCount">{{c.actualCount}}</td>
										<td ng-show="!cols.contains('actualCode')" column="actualCode">{{c.actualCode}}</td>
										<td ng-show="!cols.contains('actualName')" column="actualName">{{c.actualName}}</td>
										<td ng-show="!cols.contains('isComplete')" column="isComplete">{{c.isComplete}}</td>
										<td ng-show="!cols.contains('receivable_amount')" column="receivable_amount">{{c.receivable_amount |number:2}}</td>
										<td ng-show="!cols.contains('received_amount')" column="received_amount">{{c.received_amount |number:2}}</td>
										<td ng-show="!cols.contains('part_cost')" column="part_cost">{{c.part_cost |number:2}}</td>
										<td ng-show="!cols.contains('gross_margin')" column="gross_margin">{{c.gross_margin |number:2}}</td>
										<td ng-show="!cols.contains('gross_profit_rate')" scolumn="gross_profit_rate">{{c.gross_profit_rate |number:2}}</td>
									</tr>
								</tbody>
							</table>
<div class="no-items" ng-show="pagination.totalItems <= 0">暂无数据</div>
						</div>
						<tm-pagination conf="pagination"></tm-pagination>
					</div>
				</section>
				<!--表格显示区域-->

			</div>
		</div>
	</div>
	

	 
	 
</div>

<form id="export_form" action="combo/export"  method="post">
	<input type="hidden" name="keys" id="keys" />
	<input type="hidden" name="names" id="names" /> 
	<input type="hidden" name="params" id="params" />
	<input type="hidden" name="file_name" id="file_name" value="维修组合查询"/>
</form>
